-- GENERATED SPELL FOR [Time-Lost Controller] --


function spell0_18327(pUnit, Event) --@Summon Charming Totem,n/a--
pUnit:FullCastSpellOnTarget(32764,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18327', 30257, 1)
end

function Sorts_18327(pUnit, Event)
local choix_sorts_18327 = math.random(0, 0)
if choix_sorts_18327 == 0 then
pUnit:RegisterEvent('spell0_18327', 1, 1)
end
end

function mob18327_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18327', math.random(1500, 3000), 1)
end

function mob18327_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18327_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18327_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18327, 1, 'mob18327_Action')
RegisterUnitEvent(18327, 2, 'mob18327_Leave')
RegisterUnitEvent(18327, 3, 'mob18327_Kill')
RegisterUnitEvent(18327, 4, 'mob18327_Die')
